package max.ubitest.pipe.data
{
	import flash.events.Event;

	[Bindable]
	public class CellData extends Data
	{
		public var x:int;
		public var y:int;
		
		private var _componentData:ComponentData;
		private var _valid:String;
		
		public function CellData(value:Object=null)
		{
			super(value);
		}
		
		public function get componentData():ComponentData
		{
			return _componentData;
		}

		public function set componentData(value:ComponentData):void
		{
			_componentData = value;
			dispatchEvent(new Event("componentDataChange"));
		}

		public function get valid():String
		{
			return _valid;
		}

		public function set valid(value:String):void
		{
			_valid = value;
			dispatchEvent(new Event("validChange"));
		}

		override public function toString():String{
			return "(" + x + ", " + y + ")";
		}
	}
}